package fun.stgoder.dev.listener.common;

import cn.hutool.core.util.StrUtil;

import java.net.InetSocketAddress;

public class Constants {
    public static int SELF_UDP_PORT = 60000;

    public static final String SERVER_UDP_IP = SettingUtil.getString("server-udp-ip", "127.0.0.1");
    public static final int SERVER_UDP_PORT = SettingUtil.getInt("server-udp-port", 60011);
    public static final InetSocketAddress SERVER_UDP_ADDRESS = new InetSocketAddress(Constants.SERVER_UDP_IP, Constants.SERVER_UDP_PORT);

    public static final boolean TEST_MODE = SettingUtil.getBoolean("test-mode", true);
    public static final String HCNETSDK_PATH = SettingUtil.getString("hcnetsdk-path", "D:\\sof\\hcnetsdk");
    public static final int FACE_SCORE = SettingUtil.getInt("face-score", 80);
    public static final String SNAP_FACE_PATH = SettingUtil.getString("snap-face-path", "C:\\Users\\stgoder\\Desktop\\tmp");
    public static final String FACE_API_URL = SettingUtil.getString("face-api-url", "http://192.168.1.126:18000/BaiduFaceApi.dll/identify_by_buf_with_all");
    public static final int FACE_MATCH_SCORE = SettingUtil.getInt("face-match-score", 80);

    // new face lib
    public static final String FACE2_SERVER_HOST = SettingUtil.getString("face2-server-host", "http://192.168.1.199:58582");
    public static final String FACE2_APP_KEY = SettingUtil.getString("face2-app-key", "7c060867c16cf84c87710cf4576e4ea0");
    public static final String FACE2_APP_SECRET = SettingUtil.getString("face2-app-secret", "xskj2019");
    public static final String FACE2_FACESET_TOKEN = SettingUtil.getString("face2-faceset-token", "9227d082-bcb2-4b5b-acf8-cdd7c397abbc");

    public static final String SDK_USE_TYPE = SettingUtil.getString("sdk-use-type", "haikang");
    public static final boolean SDK_USE_DAHUA = StrUtil.equals(SDK_USE_TYPE, "dahua") ? true : false;
    public static final String DH_SDK_PATH = SettingUtil.getString("dh-sdk-path", "D:\\sof\\General_NetSDK_ChnEng_JAVA_Win64_IS_V3.052.0000002.0.R.201103\\libs\\win64\\dhnetsdk.dll");

}
